# -*- coding: utf-8 -*-
"""
Created on Wed Apr 29 13:36:30 2020

@author: Farman
"""


import pathlib
import MatlabMatMan
import MyPersistence


# translate .mat files to python3 persistence

work_dir = 'D:\Pavia\Pavia\PaviaUniversity'
work_dir = pathlib.Path(work_dir)

mat_file = 'PaviaU_gt.mat'
per_file = 'PaviaU_gt.joblib'

data = MatlabMatMan.mat2array(work_dir / mat_file)
MyPersistence.save(data, work_dir/per_file)

mat_file = 'PaviaU.mat'
per_file = 'PaviaU.joblib'

data = MatlabMatMan.mat2array(work_dir / mat_file)
MyPersistence.save(data, work_dir/per_file)
